package com.longbo.leaf.portal.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.longbo.leaf.portal.model.Goods;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;
import java.util.Optional;

/**
 * <p>
 * 商品表 Mapper 接口
 * </p>
 *
 * @author longbo
 * @since 2021-03-04
 */
@Repository
public interface GoodsMapper extends BaseMapper<Goods> {
    List<Goods> selectAll();

    Optional<Goods> selectOptionlByParams(Map<String, Object> map);

    List<Goods> selectListByParams(Map<String, Object> map);
}
